<template>
<div class="box">
  <van-icon name="arrow-left" class="leftbtn" @click="back" /><span @click="back">返回</span>
</div>
</template>

<script>

export default {
name: "myHeader",
  methods:{
    back(){
      this.$router.back()
    },
  }
}
</script>

<style scoped lang="less">
.box{
  //display: flex;
  //justify-content: space-between;
  padding-top: 5px;
  border-bottom: 1px solid #ccc;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  z-index: 10;
  .leftbtn{
    width: 45px;
    height: 40px;
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: bolder;
    text-align: center;
    line-height: 40px;
  }
  span {
    font-size: 20px;
    position: relative;
    left: -10px;
    top: -2px;
  }
}
</style>